RETRIEVE email LIST- C#

To retrieve a detailed log of your messaging history, use the following code:

var client = new PayliteMessaging.Client.MessagingClient();

var response = client.GetEmailList(new GetMessageDetailsModel

{

   ApiKey = "Your API Key",

   StartDate = DateTime.Now.AddDays(-29),

   EndDate = DateTime.Now

});